package com.kantboot.tool.area.web.controller;

import com.kantboot.tool.area.repository.ToolStateAreaRepository;
import com.kantboot.util.common.result.RestResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tool-area-web/toolStateArea")
public class ToolStateAreaController {

    @Resource
    private ToolStateAreaRepository repository;

    @RequestMapping("/getAll")
    public RestResult<?> getAll() {
        return RestResult.success(repository.findAll(),"getSuccess","获取成功");
    }

}
